// ReportTextInfo.cpp: implementation of the CReportTextInfo class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "ReportTextInfo.h"
//#include "SystemDialog.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
IMPLEMENT_SERIAL	(CReportTextInfo,CObject,1)

CReportTextInfo::CReportTextInfo()
{
	m_TextboxContent_small=_T("");
	m_bShow=TRUE;

}													    

CReportTextInfo::~CReportTextInfo()
{
}

void CReportTextInfo::Serialize(CArchive& ar)
{
	CString EditFaceName;
	
	if(ar.IsStoring())
	{
		EditFaceName=m_TextboxFont.lfFaceName;
		ar<<m_TextboxLeft<<m_TextboxTop<<m_TextboxRight<<m_TextboxBottom
			<<m_TextboxContent<<m_TextboxAttr<<m_RemoveTag
			<<m_TextboxRow<<m_TextboxColumn<<m_TextboxAlignLeftMidRight
			<<m_TextboxAlignTopCentBottom<<m_TextboxSelect<<m_TextboxFont.lfHeight
			<<m_TextboxFont.lfWidth<<m_TextboxFont.lfEscapement<<m_TextboxFont.lfOrientation
			<<m_TextboxFont.lfWeight<<m_TextboxFont.lfItalic<<m_TextboxFont.lfUnderline
			<<m_TextboxFont.lfStrikeOut<<m_TextboxFont.lfCharSet<<m_TextboxFont.lfOutPrecision
			<<m_TextboxFont.lfClipPrecision<<m_TextboxFont.lfQuality<<m_TextboxFont.lfPitchAndFamily
			<<EditFaceName<<m_TextboxForeColor<<m_bFSAlign<<m_bFSBlank<<m_TextboxMemo<<m_Backup<<m_TextboxBkColor;
	}
	else
	{
		ar>>m_TextboxLeft>>m_TextboxTop>>m_TextboxRight>>m_TextboxBottom
			>>m_TextboxContent>>m_TextboxAttr>>m_RemoveTag
			>>m_TextboxRow>>m_TextboxColumn>>m_TextboxAlignLeftMidRight
			>>m_TextboxAlignTopCentBottom>>m_TextboxSelect>>m_TextboxFont.lfHeight
			>>m_TextboxFont.lfWidth>>m_TextboxFont.lfEscapement>>m_TextboxFont.lfOrientation
			>>m_TextboxFont.lfWeight>>m_TextboxFont.lfItalic>>m_TextboxFont.lfUnderline
			>>m_TextboxFont.lfStrikeOut>>m_TextboxFont.lfCharSet>>m_TextboxFont.lfOutPrecision
			>>m_TextboxFont.lfClipPrecision>>m_TextboxFont.lfQuality>>m_TextboxFont.lfPitchAndFamily
			>>EditFaceName>>m_TextboxForeColor>>m_bFSAlign>>m_bFSBlank>>m_TextboxMemo>>m_Backup>>m_TextboxBkColor;
		wcscpy(m_TextboxFont.lfFaceName,EditFaceName.GetBuffer(100));
	}
}


